package com.fxwater.biz.service.impl;

import com.fxwater.biz.domain.PmdInfo;
import com.fxwater.biz.mapper.PmdInfoMapper;
import com.fxwater.biz.service.PmdService;
import com.fxwater.common.core.text.Convert;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PmdServiceImpl implements PmdService {
    @Autowired
    private PmdInfoMapper pmdInfoMapper;

    @Override
    public int removePmd(String ids) {
        return pmdInfoMapper.removePmd(Convert.toStrArray(ids));
    }

    @Override
    public int addPmd(PmdInfo pmdInfo) {
        return pmdInfoMapper.addPmd(pmdInfo);
    }

    @Override
    public int editSavePmdInfo(PmdInfo pmdInfo) {
        return pmdInfoMapper.editSavePmdInfo(pmdInfo);
    }

    @Override
    public List<PmdInfo> selectPmdInfoList(PmdInfo pmdInfo) {
        return pmdInfoMapper.selectPmdInfoList(pmdInfo);
    }
}
